<?php
//将该用户所加入的商品id和数量返回给前端
    @include_once("./general.php");
    $userName=isset($_GET["userName"])?$_GET["userName"]:0;
    $sqlStr;
    if ($userName) {
        global $sqlStr;
        //查找该用户加入了那些商品进购物车
        $sqlStr="SELECT goods_id,number FROM shopping_car where userName='$userName'";
        echo json_encode(query($sqlStr));
    }
        // $goodsDetailSql="SELECT * FROM goods_detail WHERE goods_id=''";
?>